package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class CustomerTransfer extends BaseDomain{

   //客户
   private Customer customer_id;
   //移交人员
   private Employee transUser_id;
   //移交时间
   private Date transTime;
   //老市场专员
   private Employee oldSeller_id;
   //新市场专员
   private Employee newSeller_id;
   //移交原因
   private String transReason;
   //所属租户
   private Tenant tenant_id;

   @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
   public Date getTransTime() {
      return transTime;
   }

   @DateTimeFormat(pattern = "yyyy-MM-dd")
   public void setTransTime(Date transTime) {
      this.transTime = transTime;
   }
}
